package admin

import database "hft/Database"

type ModelActivity struct {
	database.Base
	Title            string `json:"title" gorm:"uniqueIndex:title_city"`
	Cont             string `json:"cont"`
	ActivitySub      string `json:"activitySub" gorm:"comment:比如已有235人报名后面的报名,可以改成预约什么的"`
	Cover            string `json:"cover" gorm:"type:text"`
	Image            string `json:"image" gorm:"type:text"`
	InitNum          int    `json:"initNum"`
	Status           bool   `json:"status" gorm:"comment:是否上架"`
	ButtonName       string `json:"buttonName"`
	ButtonColor      string `json:"buttonColor"`
	TextColor        string `json:"textColor"`
	ActivitySubColor string `json:"activitySubColor"`
	BackColor        string `json:"backColor"`
	BorderColor      string `json:"borderColor"`
	Application      int    `json:"application" gorm:"comment:报名人数"`
	City             int    `json:"city" gorm:"uniqueIndex:title_city"`
	SuccessButton    string `json:"success_button"`
}

func (ModelActivity) TableName() string {
	return database.TableNameFormat("model_activity")
}
